Skip to content

Add an SDF that can be used to rotate other SDFs along one axis#3003

Merged
IntegratedQuantum merged 1 commit intoPixelGuys:masterfrom
IntegratedQuantum:sdf_rotation
May 7, 2026
Merged

Add an SDF that can be used to rotate other SDFs along one axis#3003
IntegratedQuantum merged 1 commit intoPixelGuys:masterfrom
IntegratedQuantum:sdf_rotation

Conversation

@IntegratedQuantum
Copy link
Copy Markdown
Member

fixes #2885

example:
Screenshot at 2026-05-01 15-47-34

		.{
			.id = "cubyz:rotated",
			.minAmount = 0.1,
			.maxAmount = 0.2,
			.axis = .z,
			.minAngle = 30,
			.maxAngle = 60,
			.mode = .additive,
			.child = .{
				.id = "cubyz:rectangular_cuboid",
				.minSideLengths = .{200, 30, 30},
				.maxSideLengths = .{200, 30, 30},
				.positionOffset = .{0, 0, 100},
			},
		},

@IntegratedQuantum IntegratedQuantum moved this to Waiting for artistic review in PRs to review May 1, 2026
@ikabod-kee ikabod-kee moved this from Waiting for artistic review to In review in PRs to review May 7, 2026
@Crepestrom
Copy link
Copy Markdown
Contributor

how does this interact with cluster sdf?

@ikabod-kee ikabod-kee moved this from In review to High Priority in PRs to review May 7, 2026
@ikabod-kee ikabod-kee moved this from High Priority to Easy to Review in PRs to review May 7, 2026
@Crepestrom
Copy link
Copy Markdown
Contributor

please merge master into this so we can see

@Crepestrom
Copy link
Copy Markdown
Contributor

image
		.{
			.id = "cubyz:rotated",
			.minAmount = 10,
			.maxAmount = 20,
			.axis = .z,
			.minAngle = -90,
			.maxAngle = 90,
			.mode = .additive,
			.child = .{
				.id = "cubyz:rotated",
				.axis = .y,
				.minAngle = -90,
				.maxAngle = 90,
				.mode = .additive,
				.child = .{
					.id = "cubyz:rectangular_cuboid",
					.minSideLengths = .{500, 10, 10},
					.maxSideLengths = .{500, 10, 10},
					.positionOffset = .{0, 0, 0},
				},
			},
		},

@IntegratedQuantum IntegratedQuantum merged commit f859476 into PixelGuys:master May 7, 2026
1 check passed
@IntegratedQuantum IntegratedQuantum deleted the sdf_rotation branch May 7, 2026 05:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

Rotatable Sdfs

3 participants